package com.lcf.controller;

import java.io.IOException;
import java.util.List;

import org.springframework.context.support.ClassPathXmlApplicationContext;

import com.lcf.Hello;

public class Start {
	public static void main(String[] args) throws IOException {
		 ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext(  
	                new String[] { "applicationContext.xml" });  
	        context.start();  
	  
	        Hello hello = (Hello) context.getBean("hello");  
	        hello.say("liuchengfu");
	  
	       /* List list = demoService.getUsers();  
	        if (list != null && list.size() > 0) {  
	            for (int i = 0; i < list.size(); i++) {  
	                System.out.println(list.get(i));  
	            }  
	        }  */
	        System.in.read();  
	}
}
